package de.msiggi.Sportsdata.Webservices;

public class SportsdataSoapProxy implements de.msiggi.Sportsdata.Webservices.SportsdataSoap {
  private String _endpoint = null;
  private de.msiggi.Sportsdata.Webservices.SportsdataSoap sportsdataSoap = null;
  
  public SportsdataSoapProxy() {
    _initSportsdataSoapProxy();
  }
  
  public SportsdataSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initSportsdataSoapProxy();
  }
  
  private void _initSportsdataSoapProxy() {
    try {
      sportsdataSoap = (new de.msiggi.Sportsdata.Webservices.SportsdataLocator()).getSportsdataSoap();
      if (sportsdataSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)sportsdataSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)sportsdataSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (sportsdataSoap != null)
      ((javax.xml.rpc.Stub)sportsdataSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public de.msiggi.Sportsdata.Webservices.SportsdataSoap getSportsdataSoap() {
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap;
  }
  
  public de.msiggi.Sportsdata.Webservices.League[] getAvailLeagues() throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getAvailLeagues();
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata getNextMatch(java.lang.String leagueShortcut) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getNextMatch(leagueShortcut);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata getLastMatch(java.lang.String leagueShortcut) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getLastMatch(leagueShortcut);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata getNextMatchByLeagueTeam(int leagueId, int teamId) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getNextMatchByLeagueTeam(leagueId, teamId);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata getLastMatchByLeagueTeam(int leagueId, int teamId) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getLastMatchByLeagueTeam(leagueId, teamId);
  }
  
  public int getCurrentGroupOrderID(java.lang.String leagueShortcut) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getCurrentGroupOrderID(leagueShortcut);
  }
  
  public de.msiggi.Sportsdata.Webservices.Group getCurrentGroup(java.lang.String leagueShortcut) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getCurrentGroup(leagueShortcut);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata[] getMatchdataByGroupLeagueSaison(int groupOrderID, java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchdataByGroupLeagueSaison(groupOrderID, leagueShortcut, leagueSaison);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata[] getMatchdataByLeagueDateTime(java.util.Calendar fromDateTime, java.util.Calendar toDateTime, java.lang.String leagueShortcut) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchdataByLeagueDateTime(fromDateTime, toDateTime, leagueShortcut);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata[] getMatchdataByTeams(int teamID1, int teamID2) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchdataByTeams(teamID1, teamID2);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata[] getMatchdataByLeagueSaison(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchdataByLeagueSaison(leagueShortcut, leagueSaison);
  }
  
  public java.lang.String getMatchdataByGroupLeagueSaisonJSON(int groupOrderID, java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchdataByGroupLeagueSaisonJSON(groupOrderID, leagueShortcut, leagueSaison);
  }
  
  public de.msiggi.Sportsdata.Webservices.Fussballdaten[] getFusballdaten(int spieltag, java.lang.String liga, int saison, java.lang.String userkennung) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getFusballdaten(spieltag, liga, saison, userkennung);
  }
  
  public de.msiggi.Sportsdata.Webservices.Matchdata getMatchByMatchID(int matchID) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getMatchByMatchID(matchID);
  }
  
  public de.msiggi.Sportsdata.Webservices.Team[] getTeamsByLeagueSaison(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getTeamsByLeagueSaison(leagueShortcut, leagueSaison);
  }
  
  public de.msiggi.Sportsdata.Webservices.Group[] getAvailGroups(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getAvailGroups(leagueShortcut, leagueSaison);
  }
  
  public de.msiggi.Sportsdata.Webservices.Sport[] getAvailSports() throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getAvailSports();
  }
  
  public de.msiggi.Sportsdata.Webservices.League[] getAvailLeaguesBySports(int sportID) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getAvailLeaguesBySports(sportID);
  }
  
  public de.msiggi.Sportsdata.Webservices.Goal[] getGoalsByMatch(int matchID) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getGoalsByMatch(matchID);
  }
  
  public de.msiggi.Sportsdata.Webservices.Goal[] getGoalsByLeagueSaison(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getGoalsByLeagueSaison(leagueShortcut, leagueSaison);
  }
  
  public de.msiggi.Sportsdata.Webservices.GoalGetter[] getGoalGettersByLeagueSaison(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getGoalGettersByLeagueSaison(leagueShortcut, leagueSaison);
  }
  
  public java.util.Calendar getLastChangeDateByLeagueSaison(java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getLastChangeDateByLeagueSaison(leagueShortcut, leagueSaison);
  }
  
  public java.util.Calendar getLastChangeDateByGroupLeagueSaison(int groupOrderID, java.lang.String leagueShortcut, java.lang.String leagueSaison) throws java.rmi.RemoteException{
    if (sportsdataSoap == null)
      _initSportsdataSoapProxy();
    return sportsdataSoap.getLastChangeDateByGroupLeagueSaison(groupOrderID, leagueShortcut, leagueSaison);
  }
  
  
}